from lib.sensors.ws2812 import WS2812
from lib.config.index import sensor_config
import time

ws2812_config = sensor_config.get_sensor("ws2812")
print(ws2812_config)
pin_num = ws2812_config["pin"]
num = ws2812_config["num"]
ws2812 = WS2812(pin_num, num)

def show_demo():
    ws2812.cycle()
    time.sleep(1)
    ws2812.clear()
    ws2812.bounce()
    time.sleep(1)
    ws2812.clear()
    ws2812.fade_in_out()
    time.sleep(1)
    ws2812.clear()
    ws2812.rainbow()
    time.sleep(1)
    ws2812.clear()

show_demo()
